package xiao_jin.fantastic_journey.generator.book;

import com.klikli_dev.modonomicon.api.datagen.ModonomiconLanguageProvider;
import com.klikli_dev.modonomicon.api.datagen.SingleBookSubProvider;
import com.klikli_dev.modonomicon.api.datagen.book.BookModel;
import net.minecraft.util.Identifier;

import static com.klikli_dev.modonomicon.book.BookDisplayMode.NODE;

public final class GaiaVigilante extends SingleBookSubProvider {

    public static final String ID = "gaia_vigilante";

    public GaiaVigilante(String modid, ModonomiconLanguageProvider lang) {
        super(ID, modid, lang);
    }

    @Override
    protected BookModel additionalSetup(BookModel book) {
//        this.add(this.lang("zh_cn"), "gaia_vigilante.name", "旅者指南");
        return book.withModel(Identifier.of("modonomicon:modonomicon_green"))
                .withBookTextOffsetX(5)
                .withBookTextOffsetY(0)
                .withBookTextOffsetWidth(-5)
                .withGenerateBookItem(true)
                .withDisplayMode(NODE)
                .withAutoAddReadConditions(true);

    }

    @Override
    protected void registerDefaultMacros() {
    }

    @Override
    protected void generateCategories() {
    }

    @Override
    protected String bookName() {
        return "旅者指南";
    }

    @Override
    protected String bookTooltip() {
        return "";
    }

}
